numbers=input()
grade=numbers.split(',')
grades=[int(x) for x in grade]
grades.sort()
new_grades=grades[1:9]
average=sum(new_grades)/len(new_grades)
print(f"{average:.2f}",end="")
